package com.asd.system.service.Impl;

import com.asd.system.entity.Images;
import com.asd.system.mapper.ImagesMapper;
import com.asd.system.service.IImagesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author
 * @createtime 2021-09-13 14:20
 * @description
 */
@Service
public class ImagesServiceImpl extends ServiceImpl<ImagesMapper, Images> implements IImagesService {


    @Autowired
    private ImagesMapper imagesMapper;

    @Override
    public void deletByPrimaryEchoPath(String primaryEchoPath) {

        imagesMapper.deletByPrimaryEchoPath(primaryEchoPath);
    }

    @Override
    public void deletByViceEchoPath(String viceEchoPath) {
        imagesMapper.deletByViceEchoPath(viceEchoPath);
    }


    @Override
    public void updateByPrimaryEchoPath(String pid, String primaryEchoPath) {
        imagesMapper.updateByPrimaryEchoPath(pid,primaryEchoPath);
    }

    @Override
    public void updateByViceEchoPath(String pid, String viceEchoPath) {
        imagesMapper.updateByViceEchoPath(pid,viceEchoPath);
    }



}
